package day_240606.enum_test;

public class Student {
    int age;
    private static Student instance;

    private Student() {
        System.out.println("验证构造器的调用");
    }
    public static Student getInstance() {
        if (instance == null) {
            instance = new Student();
        }
        return instance;
    }
}
